package com.power.flowable.service.impl;

import com.plf.common.exception.BusinessException;
import com.power.flowable.dao.SfapproveFlowableDao;
import com.power.flowable.service.SfapproveFlowableService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class SfapproveFlowableServiceImpl implements SfapproveFlowableService {

    @Resource
    private SfapproveFlowableDao dao;

    @Override
    @Transactional(rollbackFor = Exception.class)
    public List<Map<String, Object>> queryCandidateusers(String applyid, List<String> groupids, List<String> userids) throws BusinessException {
        List<Map<String, Object>> list = this.dao.queryCandidateusers(groupids, userids);
        return list;
    }
}
